package com.ruoyi.ResLipstick.service.impl;


import com.ruoyi.ResLipstick.domain.ResLipstick;
import com.ruoyi.ResLipstick.mapper.ResLipstickMapper;
import com.ruoyi.ResLipstick.service.ResLipstickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResLipstickServiceImpl implements ResLipstickService {
//董虹妤2619
    @Autowired
    ResLipstickMapper mapper;
    @Override
    public List<ResLipstick> getLipstickList(ResLipstick lipstick) {

        return mapper.getLipstickList(lipstick);
    }

    //董虹妤2619
    @Override
    public ResLipstick selectResLipstickById(Long id) {
        return mapper.getLipstickById(id);
    }

    //新增口红 董虹妤2619
    @Override
    public int insertResLipstick(ResLipstick lipstick) {
        return mapper.insertResLipstick(lipstick);
    }

    //修改口红 董虹妤2619
    @Override
    public int updateResLipstick(ResLipstick lipstick) {
        return mapper.updateResLipstick(lipstick);
    }

    //删除口红  董虹妤2619
    @Override
    public int deleteResLipstick(int id) {
        return mapper.deleteResLipstick(id);
    }
}
